home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 590 / help < prev    next >
Encoding:
Text File  |  1992-01-06  |  8.5 KB  |  227 lines

  1. Internal Commands:
  2.  
  3. DISPLAYING AND MANIPULATING DATA
  4.  cat [-b] {file}        copy file(s) to StdOut
  5.  crypt [key]            encrypt or decrypt StdIn to StdOut
  6.  echo {string}            write strings to StdOut
  7.  egrep [-cfl] pattern {file}    find pattern, allows regular expressions
  8.  fgrep [-cfl] pattern {file}    find pattern, fixed string only
  9.  grep [-cfsl] pattern {file}    find pattern, allows extended wildcards
  10.  hd {file}            Hex dump
  11.  more {file}            show file in pages
  12.  pg {file}            same as more
  13.  raw [-bnc] {file}        put file(s) on raw console
  14.  split [-bfv] [-Num] {file}    break file into pieces of Num lines each
  15.  tee file            copy StdIn to StdOut and to file
  16.  tr fltrfile            filter StdIn to StdOut according to fltrfile
  17.  wc [-lwcn] {file}        count lines, words, and characters
  18.  what [-s] {file}        identify files by @(#)
  19.  
  20. MAINTAINING FILES AND DIRECTORIES 
  21.  chmod (+|-)[cdhrsvf] file    change file attributes
  22.  cp [-acCvifq] src {src} dest    copy files
  23.  ls [-adlfkCvixtnbr] {filespec}    list files
  24.  mkdir [-r] dir {dir}        create a directory
  25.  mv [-vif] src {src} dest    move or rename files
  26.  rm [-friqv] file {file}    remove files
  27.  rmdir path {path}        remove directories
  28.  touch file {file}        update date-time-stamp or create a file
  29.  
  30. SHELL PROGRAMMING
  31.  . file             execute a file as a shell script
  32.  [ expr ]            same as test
  33.  alert icn def boxt butt [var]    (*) display an AES alert box
  34.  exec [-lbxg] file {Parameter}    execute a file as a binary program
  35.  exit                finish a script
  36.  Exit                finish the shell
  37.  false                returns 0
  38.  fsel [filespec [name [var [lbl]]]]   (*) select a file with the fileselect box
  39.  if, then, else, fi        see below
  40.  indir String            send String once more through the evaluator
  41.  read [[-] variable]        read a variable from StdIn
  42.  sleep [-s] Time        wait for a while
  43.  test [expr]            evaluate a logical expression
  44.  true                returns 1
  45.  while, do, break, done     see below
  46.  xargs [Command {Parameter}]    perform with lines from StdIn, replace {}
  47.  
  48. SHELL AND SYSTEM MANAGEMENT AND CONFIGURATION
  49.  alias name string        set up a shell function
  50.  clipb [path]            (*) configure the AES clipboard ($CLIPDIR)
  51.  cursor [(+|-)bv] [rate]    configure VT52 cursor
  52.  date [+DateFmt]        show time and date
  53.  df [-dnmbf] {drive}        disk space info
  54.  drive drive{drive} [name]    get/set drive names
  55.  du [-brft] {directory}        disk usage info & directory tree
  56.  exit                finish the shell
  57.  export [[-] {Variable}]    mark or unmark for envir. (wildcards allowed)
  58.  goff                exit from AES application
  59.  gon [-q]            init as AES application or query
  60.  hash [-r] [Cmd [Path]]        read&set the hash table (wildcards allowed)
  61.  keyb [-] | ([(+|-)abc] [-irk])    konfigure the keyboard
  62.  keydef [+nsca] key [text|-]    redefine the keyboard
  63.  mouse [+|-] [form] [Var [Var [Var]]]    (*) configure or query the mouse
  64.  overscan [+|-]            switch OverScan on and off
  65.  readonly [[-] {variable]}    make variables readonly (wildcards allowed)
  66.  rdti [-dclxv] [filename]    configure shell from desktop.inf
  67.  rsconf [-spbw] [(+|-)xr]    configure the serial interface (RS232)
  68.  scr [-bwghl]            set backgr.col and (*) # of lines (hires only)
  69.  shutdown [-rRtfv]        shut down or reset the system
  70.  trap [-|[+]Command {Parameter}] set a command to execute on shell exit
  71.  unalias name {name}        same as unset
  72.  unset name {name}        delete shell functions
  73.  
  74. SHELL AND SYSTEM MONITORING
  75.  adr                show some system adresses
  76.  basep [-ap] [adress]        find or analyse a basepage
  77.  cmds [-Ca] {pattern}        list internal commands (wildcards allowed)
  78.  cookie [-xdn0sc] {cookie}    read out the cookie jar (wildcards allowed)
  79.  env                show the shell's environment
  80.  errcode {Number|errno}        explain an error number
  81.  fcts                list Shell functions
  82.  history [-l]            load or save the history list
  83.  mem [-b]            show free or total RAM
  84.  memex [-acwls] Adress [Number] examine memory
  85.  pmd                produce a post mortem dump
  86.  set [-|(+|-)blxaschuS]        show/set Shell flags
  87.  time Command {Parameter}    command run time
  88.  type [-fs] command {command}    show calling path of command
  89.  vars [-aexs]            list Shell variables
  90.  ver [-oclgtdmMa]        show shell & OS version numbers
  91.  
  92. UTILITIES
  93.  backup [-nNrq] [path]        save files to disk
  94.  dial [-q|-f file|{No|Id|-d}]    dial a phone number on the modem
  95.  find path filespec        list matching files
  96.  getscr [-[header] filename]    get screen bit image
  97.  man [command]            online help
  98.  putscr [-(f|s filename)]    show/save a screen bit image
  99.  rpn [Fmt] rpn-expr        RPN calculator
  100.  sort [-lnrs]            sort StdIn to StdOut
  101.  te [-dk] [Dev {file|:string}]    terminal emulator
  102.  ts [-hlpbmdtref]        terminal server
  103.  upn [Fmt] rpn-expr        same as rpn
  104.  virus [-xvsi] {drive}        find & extinguish bootsector viruses
  105.  
  106. MISCELLANIOUS
  107.  basename file [extender]    find filename (a:\okami\sh.ttp -> sh.ttp)
  108.  bombs n            terminate with n bombs (n>=2)
  109.  cd [path]            change work directory
  110.  cls                clear the screen
  111.  dark                darken the screen (same as ^A)
  112.  dirname file            find path (a:\okami\sh.ttp -> a:\okami\)
  113.  drvname file            find drive (a:\okami\sh.ttp -> a:)
  114.  extname file            find extender (okami\sh.ttp -> .ttp)
  115.  fullname file            find absolute filename
  116.  hardcopy            print contents of screen
  117.  help                same as pg $HOME/help
  118.  logo [x [y]]            draw the Okami logo
  119.  pwd [-a|{Drive}]        print work directory
  120.  
  121.  
  122.  (*) command can only be used after gon has been called.
  123.  
  124.  drive:     e.g.    d:
  125.  path:        e.g.    d:\okami
  126.  file:        e.g.    d:\okami\sh.ttp
  127.  filespec:    e.g.    d:\okami\*.sh        or file
  128.  source,dest:    file
  129.  fltrfile:    file
  130.  pattern:    any string
  131.  Number:    eg. 123 (dec), 0xabc (hex), 0123 (oct), %110 (bin), !A (char)
  132.  Adress:    Number
  133.  Time:        Number
  134.  rate:        0:still, 30:normal, <30:faster, >30:slower
  135.  expr:        a logical expression, see "test" in commands.doc
  136.  rpn-expr:    an RPN expression
  137.  Fmt:        a printf format string
  138.  DateFmt:    special printf-like format, see "date" in commands.doc
  139.  form:        0 arrow, 1 hourglass, 2 bee, 3 pointing hand, 4 flat hand,
  140.         5 thin crosshair, 6 thick crosshair, 7 outlined crosshair
  141.  
  142.  
  143.  Commands with optional file (eg. hd [file]) take StdIn if no file is given.
  144.  
  145.  
  146.  Extended Wildcards:
  147.  *    matches anything
  148.  ?    matches one character
  149.  [xyz]    matches x, y, or z
  150.  [x-z]    matches x, ..., z
  151.  [~xy]    matches any character except x and y
  152.  
  153.  Conditional execution:
  154.  if command        Executes commands1 if command returns a non-zero
  155.  then            exit value and commands2 if command returns a
  156.    commands1        zero exit value. "else command2" may be ommitted.
  157.  else            command can be "test expr" or "[ expr ]" (see
  158.    commands2        "test").
  159.  fi            This works with shell scripts and in interactive
  160.             mode.
  161.  
  162.  Looping:
  163.  while command        Executes commands2 until command returns a zero
  164.  do            exit value. break may be used within an if-fi-
  165.    commands2        construct and quits the loop immediately.
  166.    <may include:>    continue may be used within an if-fi-contruct and
  167.    break <or>        starts a new loop immediately.
  168.    continue        This works with shell scripts (and functions) only.
  169.  done
  170.  
  171.  Function deklaration:
  172.  functionname(filename) generates "functionname" from file
  173.  (filename)        generates `basename filename` from file
  174.  functioname()        generates "functionname" with the given
  175.  {            commands
  176.    commands...
  177.  }
  178.  functionname()     removes the named function
  179.  {}
  180.  
  181.  `filename' may be a shell script or executable program file.
  182.  
  183.  
  184.  I/O redirection:
  185.  <            redirect StdIn
  186.  >            redirect StdOut, create
  187.  >>            redirect StdOut, append
  188.  n>            redirect File-Descr. n, create (n=2: StdErr)
  189.  n>>            redirect File-Descr. n, append (n=2: StdErr)
  190.  |            pipe
  191.  <<[-]eofstring        inline document
  192.  `...`            command substitution
  193.  
  194.  Devices:
  195.  A:            Disk Drive A:
  196.  B:            Disk Drive B: etc.
  197.  CON:            Console (screen and keyboard)
  198.  PRN:            Printer (parallel port)
  199.  AUX:            RS232 (serial Port [Modem])
  200.  NULL:            nowhere (set $NULL to specify)
  201.  
  202.  Keyboard command entry:
  203.  Backspace        erase last character
  204.  Up-Arrow        display previous in history (*)
  205.  Dn-Arrow        display next in history (*)
  206.  Lt-Arrow        move cursor (**)
  207.  Rt-Arrow        move cursor (**)
  208.  Ctrl Space        restore from previous input
  209.  Insert         insert a space
  210.  Ctrl Insert        toggle insert/overwrite mode
  211.  Delete            delete a char
  212.  Ctrl Delete        delete to end of line
  213.  Clr Home        erase line
  214.  Esc            filename completion
  215.  Shift Esc        filename-expand last word
  216.  Help            explain current command using $HELPFILE
  217.  Ctrl Shift Undo    deactivate keydefs (valid until ENTER)
  218.  Control F        select a file via fileselect box (***)
  219.  Control P        execute the shell function "screensave"
  220.  Control A        darken screen, resume with any key
  221.  Alternate Space    display time&date until Space is released
  222.  Control D        abort the shell
  223.  
  224.  (*) with Ctrl: execute, with Shift: last match
  225.  (**) normal: one char, with Ctrl: one word, with Ctrl: beg/end of line
  226.  (***) needs gon
  227.